﻿using Joy.Erp.BasicArchives;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp;
using Volo.Abp.Application.Dtos;

namespace Joy.Erp.Ufida.Core
{
    [RemoteService(Name = BasicArchivesRemoteServiceConsts.RemoteServiceName)]
    [Area(BasicArchivesRemoteServiceConsts.ModuleName)]
    [ControllerName("ArchivesSync")]
    [Route("api/basic-archives/archives-sync")]
    public class ArchivesSyncController : UfidaController, IArchivesSyncAppService
    {
        protected IArchivesSyncAppService ArchivesSyncAppService => LazyServiceProvider.LazyGetRequiredService<IArchivesSyncAppService>();

        [HttpGet]
        [Route("empty")]
        public PagedResultDto<AnalysisDto> GetEmpty()
        {
            return ArchivesSyncAppService.GetEmpty();
        }
    }
}
